﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.PlanContxt;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.PlanContxt
{
    /// <summary>
    /// 销售订单仓储接口
    /// </summary>
    public interface ISaleOrderRepository : IAggRootRepository<SaleOrder>
    {
        #region # 分页获取销售订单列表 —— ICollection<SaleOrder> FindByPage(string keywords...
        /// <summary>
        /// 分页获取销售订单列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="customerId">客户Id</param>
        /// <param name="issuedDate">下单日期</param>
        /// <param name="deliveryDate">交付日期</param>
        /// <param name="checkStatus">审核状态</param>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>销售订单列表</returns>
        ICollection<SaleOrder> FindByPage(string keywords, Guid? customerId, DateTime? issuedDate, DateTime? deliveryDate, CheckStatus? checkStatus, DateTime? startTime, DateTime? endTime, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
